package cn.itsource.service.impl;

import cn.itsource.domain.Room;
import cn.itsource.mapper.RoomMapper;
import cn.itsource.service.IRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoomServiceImpl implements IRoomService {

    @Autowired
    private RoomMapper roomMapper;

    /**
     * 根据房间ID查询房间信息
     * @param id
     * @return
     */
    @Override
    public Room getById(Integer id) {
        return roomMapper.fById(id);
    }
}
